<template>
	<view class="content" :style="'height: '+windowHeight+'px;width:'+windowWidth">
		<view class="bg-box" @click="goNavigation">
			1111111
		</view>
	</view>


</template>

<script>
	import {
		request,
		ossUrl
	} from '../util/ajax.js'
	import {
		changeLastPage,
		checkPageLogin,
		checkPerms,
		getDateByYearMonth
	} from '../util/utils.js';
	import {
		mapState,
		mapMutations,
		mapGetters
	} from 'vuex';
	export default {
		data() {
			return {
				ossUrl: ossUrl,
				title: 'Hello',
				getDateByYearMonth: getDateByYearMonth().fullDate,
				windowHeight: '',
				windowWidth: ''

			}
		},
		computed: {
			...mapState(['userInfo', 'sysUser', 'sysMenus']),

		},
		onLoad() {
			this.getSystemInfo();
		},
		onShow() {

		},
		methods: {
			getSystemInfo() {
				let that = this;
				uni.getSystemInfo({
					success: function(e) {
						console.log(e)
						that.windowHeight = e.windowHeight;
						that.windowWidth = e.windowWidth;
					}
				})
			},
			goNavigation() {
				console.log(111)
				uni.navigateTo({
					url: '/pages/navigation/navigation'
				})
			}
		}
	}
</script>

<style scoped>
	page {
		height: 100%;
	}

	.content {
		position: relative;
	}

	.bg-box {
		background-image: url('http://oss.91xiaokong.com/fireControl/index_bg.png');
		background-color: #000000;
		background-size: 100% 100%;
		background-repeat: no-repeat;
		height: 100%;
		width: 100%;
	}
</style>
